<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%-- 设置meta
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/meta.jsp"%>
	<title>三方28数据管理</title>
	
<%-- 导入样式
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/link.jsp"%>
	<link rel="stylesheet" href="${res }/default/css/content.css" /> 
	
<%-- 导入脚本
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/script.jsp"%>
<script src="${res }/default/js/manage.js"></script>

<%-- 页眉
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/header.jsp"%>
	<div class="xl-content ">
		<div class="xl-content-sidebar pull-left">
			<%@ include file="/WEB-INF/template/include/menu.jsp"%>
		</div>
		
		<div class="xl-content-main">
			<form id="J_form" class="form" action="${ctx }/btn/betting/manage.html" method="post">
				<div class="well">
					<h2 class="xl-form-title">投注记录管理</h2>
					<hr />
					<table class="table table-bordered table-striped table-hover">
						<thead>
							<tr>
								<th width="80">序号</th>
								<th width="80">期号</th>
								<th width="80">号码</th>
								<th width="80">投注</th>
								<th width="80">获得</th>
								<th >盈利</th>
								<th width="50">操作</th> 
							</tr>
						</thead>
						<tbody>
							<c:forEach items="${btnBettings }" var="item" varStatus="status">
							<tr>
								<td>${status.index+1 }</td>
								<td>${item.historyId }</td>
								<td>${item.number }</td>
								<td>${item.putinAmount }</td>
								<td>${item.obtainAmount }</td>
								<td ${item.earnAmount>=0?"style='color:red;'":"style='color:green;'" }>${item.earnAmount }</td>
								<td>
<%-- 									<a href="javascript:void 0;" class="xl-operation-item fa fa-pencil-square-o" title="修改" onclick="window.app.dialog.iframe({title:'修改',url:'${ctx}/btn/betting/update.html?id=${item.id}'})"></a> --%>
									<a href="javascript:void 0;" class="xl-operation-item fa fa-list-alt" title="查看" onclick="window.app.dialog.iframe({title:'查看',url:'${ctx}/btn/betting/detail.html?id=${item.id}'})"></a>
<%-- 									<a href="javascript:void 0;" class="xl-operation-item fa fa-trash-o" title="删除" onclick="window.app.dialog.confirm('确定删除？',Utils.proxy(window.manage.remove,'${item.id}'))"></a> --%>
<%-- 									<a href="javascript:void 0;" class="xl-operation-item fa fa-copy" title="复制" onclick="window.app.dialog.confirm('确定复制？',Utils.proxy(window.manage.copy,'${item.id}'))"></a> --%>
								</td>
							</tr>	
							</c:forEach>
						</tbody>
					</table>
					<div>
						<div class="pull-left">
							<button type="button" onclick="window.manage.openSearch()" class="btn btn-sm"><i class=" fa fa-search"></i>筛选</button>
<%-- 							<button type="button" onclick="window.app.dialog.iframe({title:'新增',url:'${ctx}/btn/betting/create.html'})" class="btn btn-sm"><i class=" fa fa-plus"></i>新增</button> --%>
							<button type="button" onclick="window.manage.expt()" class="btn btn-sm"><i class=" fa fa-file-excel-o"></i>导出</button>
						</div>
						<%@ include file="/WEB-INF/template/include/paging.jsp"%>
						<div class="clear-right"></div>
					</div>
					<div id="J_condition_container">
						<div class="form-horizontal xl-mange-condition" id="J_condition" style="width:500px;display:none;">   
							<div class="well" >
								<h2 class="xl-form-title">筛选条件</h2> 
								<div class="form-group">
									<label class="control-label col-xs-3">项目</label>
									<div class="col-xs-3">
										<select class="form-control" name="bettingProjectIdOp">
											<option value="eq" <c:if test="${bettingProjectIdOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${bettingProjectIdOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${bettingProjectIdOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${bettingProjectIdOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${bettingProjectIdOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="bettingProjectId" placeholder="投注项目" title="投注项目" value="${bettingProjectId }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">项目</label>
									<div class="col-xs-3">
										<select class="form-control" name="bettingProjectNameOp">
											<option value="eq" <c:if test="${bettingProjectNameOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="contains" <c:if test="${bettingProjectNameOp=='contains'}">selected="selected"</c:if>>包含</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="bettingProjectName" placeholder="投注项目" title="投注项目" value="${bettingProjectName }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">模式</label>
									<div class="col-xs-3">
										<select class="form-control" name="modeIdOp">
											<option value="eq" <c:if test="${modeIdOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${modeIdOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${modeIdOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${modeIdOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${modeIdOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="modeId" placeholder="模式" title="模式" value="${modeId }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">模式</label>
									<div class="col-xs-3">
										<select class="form-control" name="modeNameOp">
											<option value="eq" <c:if test="${modeNameOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="contains" <c:if test="${modeNameOp=='contains'}">selected="selected"</c:if>>包含</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="modeName" placeholder="模式名称" title="模式名称" value="${modeName }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">期号</label>
									<div class="col-xs-3">
										<select class="form-control" name="historyIdOp">
											<option value="eq" <c:if test="${historyIdOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${historyIdOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${historyIdOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${historyIdOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${historyIdOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="historyId" placeholder="期号" title="期号" value="${historyId }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">号码</label>
									<div class="col-xs-3">
										<select class="form-control" name="numberOp">
											<option value="eq" <c:if test="${numberOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${numberOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${numberOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${numberOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${numberOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="number" placeholder="编号" title="编号" value="${number }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">投入</label>
									<div class="col-xs-3">
										<select class="form-control" name="putinAmountOp">
											<option value="eq" <c:if test="${putinAmountOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${putinAmountOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${putinAmountOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${putinAmountOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${putinAmountOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="putinAmount" placeholder="投入" title="投入" value="${putinAmount }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">获得</label>
									<div class="col-xs-3">
										<select class="form-control" name="obtainAmountOp">
											<option value="eq" <c:if test="${obtainAmountOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${obtainAmountOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${obtainAmountOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${obtainAmountOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${obtainAmountOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="obtainAmount" placeholder="获得" title="获得" value="${obtainAmount }"/>
									</div>
								</div> 
								<div class="form-group">
									<label class="control-label col-xs-3">盈利</label>
									<div class="col-xs-3">
										<select class="form-control" name="earnAmountOp">
											<option value="eq" <c:if test="${earnAmountOp=='eq'}">selected="selected"</c:if>>等于</option>
											<option value="gt" <c:if test="${earnAmountOp=='gt'}">selected="selected"</c:if>>大于</option>
											<option value="lt" <c:if test="${earnAmountOp=='lt'}">selected="selected"</c:if>>小于</option>
											<option value="gte" <c:if test="${earnAmountOp=='gte'}">selected="selected"</c:if>>大于等于</option>
											<option value="lte" <c:if test="${earnAmountOp=='lte'}">selected="selected"</c:if>>小于等于</option>
										</select>
									</div>
									<div class="col-xs-5">
										<input class="form-control" type="text" name="earnAmount" placeholder="盈利" title="盈利" value="${earnAmount }"/>
									</div>
								</div> 
								<button type="button"  class=" xl-btn-login btn-block "  onclick="window.manage.search()">筛选</button>
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
		<div class="clearfix"></div>
	</div>
	
<%-- 页脚
////////////////////////////////////////////////////////////////////////////////////////////// --%>
<%@ include file="/WEB-INF/template/include/footer.jsp"%>
